import request from '@/utils/request'

/**
 * 榜单成员
 */

export function getMemberCommentList(params) {
  return request({
    url: process.env.RANK_API + '/memberComment/getList',
    method: 'post',
    data: params
  })
}

export function getMemberCommentListByUser(params) {
  return request({
    url: process.env.RANK_API + '/memberComment/getCommentListByUser',
    method: 'post',
    data: params
  })
}

export function getMemberReplyListByUser(params) {
  return request({
    url: process.env.RANK_API + '/memberComment/getReplyListByUser',
    method: 'post',
    data: params
  })
}

export function getMemberPraiseListByUser(params) {
  return request({
    url: process.env.RANK_API + '/memberComment/getPraiseListByUser',
    method: 'post',
    data: params
  })
}

export function addMemberComment(params) {
  return request({
    url: process.env.RANK_API + '/memberComment/add',
    method: 'post',
    data: params
  })
}

export function deleteMemberComment(params) {
  return request({
    url: process.env.RANK_API + '/memberComment/delete',
    method: 'post',
    data: params
  })
}

export function reportMemberComment(params) {
  return request({
    url: process.env.RANK_API + '/memberComment/report',
    method: 'post',
    data: params
  })
}

/**
 * 用户动态
 */

export function getMomentCommentList(params) {
  return request({
    url: process.env.COMMUNITY_API + '/momentComment/getList',
    method: 'post',
    data: params
  })
}

export function getMomentCommentListByUser(params) {
  return request({
    url: process.env.COMMUNITY_API + '/momentComment/getCommentListByUser',
    method: 'post',
    data: params
  })
}

export function getMomentReplyListByUser(params) {
  return request({
    url: process.env.COMMUNITY_API + '/momentComment/getReplyListByUser',
    method: 'post',
    data: params
  })
}

export function getMomentPraiseListByUser(params) {
  return request({
    url: process.env.COMMUNITY_API + '/momentComment/getPraiseListByUser',
    method: 'post',
    data: params
  })
}

export function addMomentComment(params) {
  return request({
    url: process.env.COMMUNITY_API + '/momentComment/add',
    method: 'post',
    data: params
  })
}

export function deleteMomentComment(params) {
  return request({
    url: process.env.COMMUNITY_API + '/momentComment/delete',
    method: 'post',
    data: params
  })
}

export function reportMomentComment(params) {
  return request({
    url: process.env.COMMUNITY_API + '/momentComment/report',
    method: 'post',
    data: params
  })
}
